3.3.32 \(\int \frac {(a+b \log (c (d+e x)^n))^3}{(f+g x) (h+i x)} \, dx\) [232]

3.3.32.1 Optimal result
3.3.32.2 Mathematica [A] (verified)
3.3.32.3 Rubi [A] (verified)
3.3.32.4 Maple [C] (warning: unable to verify)
3.3.32.5 Fricas [F]
3.3.32.6 Sympy [F(-1)]
3.3.32.7 Maxima [F]
3.3.32.8 Giac [F]
3.3.32.9 Mupad [F(-1)]

3.3.32.1 Optimal result

Integrand size = 31, antiderivative size = 372 \[ \int \frac {\left (a+b \log \left (c (d+e x)^n\right )\right )^3}{(f+g x) (h+i x)} \, dx=\frac {\left (a+b \log \left (c (d+e x)^n\right )\right )^3 \log \left (\frac {e (f+g x)}{e f-d g}\right )}{g h-f i}-\frac {\left (a+b \log \left (c (d+e x)^n\right )\right )^3 \log \left (\frac {e (h+i x)}{e h-d i}\right )}{g h-f i}+\frac {3 b n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \operatorname {PolyLog}\left (2,-\frac {g (d+e x)}{e f-d g}\right )}{g h-f i}-\frac {3 b n \left (a+b \log \left (c (d+e x)^n\right )\right )^2 \operatorname {PolyLog}\left (2,-\frac {i (d+e x)}{e h-d i}\right )}{g h-f i}-\frac {6 b^2 n^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \operatorname {PolyLog}\left (3,-\frac {g (d+e x)}{e f-d g}\right )}{g h-f i}+\frac {6 b^2 n^2 \left (a+b \log \left (c (d+e x)^n\right )\right ) \operatorname {PolyLog}\left (3,-\frac {i (d+e x)}{e h-d i}\right )}{g h-f i}+\frac {6 b^3 n^3 \operatorname {PolyLog}\left (4,-\frac {g (d+e x)}{e f-d g}\right )}{g h-f i}-\frac {6 b^3 n^3 \operatorname {PolyLog}\left (4,-\frac {i (d+e x)}{e h-d i}\right )}{g h-f i} \]

output
(a+b*ln(c*(e*x+d)^n))^3*ln(e*(g*x+f)/(-d*g+e*f))/(-f*i+g*h)-(a+b*ln(c*(e*x 
+d)^n))^3*ln(e*(i*x+h)/(-d*i+e*h))/(-f*i+g*h)+3*b*n*(a+b*ln(c*(e*x+d)^n))^ 
2*polylog(2,-g*(e*x+d)/(-d*g+e*f))/(-f*i+g*h)-3*b*n*(a+b*ln(c*(e*x+d)^n))^ 
2*polylog(2,-i*(e*x+d)/(-d*i+e*h))/(-f*i+g*h)-6*b^2*n^2*(a+b*ln(c*(e*x+d)^ 
n))*polylog(3,-g*(e*x+d)/(-d*g+e*f))/(-f*i+g*h)+6*b^2*n^2*(a+b*ln(c*(e*x+d 
)^n))*polylog(3,-i*(e*x+d)/(-d*i+e*h))/(-f*i+g*h)+6*b^3*n^3*polylog(4,-g*( 
e*x+d)/(-d*g+e*f))/(-f*i+g*h)-6*b^3*n^3*polylog(4,-i*(e*x+d)/(-d*i+e*h))/( 
-f*i+g*h)
 
3.3.32.2 Mathematica [A] (verified)

Time = 0.26 (sec) , antiderivative size = 599, normalized size of antiderivative = 1.61 \[ \int \frac {\left (a+b \log \left (c (d+e x)^n\right )\right )^3}{(f+g x) (h+i x)} \, dx=\frac {\left (a-b n \log (d+e x)+b \log \left (c (d+e x)^n\right )\right )^3 \log (f+g x)-\left (a-b n \log (d+e x)+b \log \left (c (d+e x)^n\right )\right )^3 \log (h+i x)+3 b n \left (a-b n \log (d+e x)+b \log \left (c (d+e x)^n\right )\right )^2 \left (\log (d+e x) \left (\log \left (\frac {e (f+g x)}{e f-d g}\right )-\log \left (\frac {e (h+i x)}{e h-d i}\right )\right )+\operatorname {PolyLog}\left (2,\frac {g (d+e x)}{-e f+d g}\right )-\operatorname {PolyLog}\left (2,\frac {i (d+e x)}{-e h+d i}\right )\right )+6 b^2 n^2 \left (a-b n \log (d+e x)+b \log \left (c (d+e x)^n\right )\right ) \left (\frac {1}{2} \log ^2(d+e x) \log \left (\frac {e (f+g x)}{e f-d g}\right )-\frac {1}{2} \log ^2(d+e x) \log \left (\frac {e (h+i x)}{e h-d i}\right )+\log (d+e x) \operatorname {PolyLog}\left (2,\frac {g (d+e x)}{-e f+d g}\right )-\log (d+e x) \operatorname {PolyLog}\left (2,\frac {i (d+e x)}{-e h+d i}\right )-\operatorname {PolyLog}\left (3,\frac {g (d+e x)}{-e f+d g}\right )+\operatorname {PolyLog}\left (3,\frac {i (d+e x)}{-e h+d i}\right )\right )+b^3 n^3 \left (\log ^3(d+e x) \log \left (\frac {e (f+g x)}{e f-d g}\right )-\log ^3(d+e x) \log \left (\frac {e (h+i x)}{e h-d i}\right )+3 \log ^2(d+e x) \operatorname {PolyLog}\left (2,\frac {g (d+e x)}{-e f+d g}\right )-3 \log ^2(d+e x) \operatorname {PolyLog}\left (2,\frac {i (d+e x)}{-e h+d i}\right )-6 \log (d+e x) \operatorname {PolyLog}\left (3,\frac {g (d+e x)}{-e f+d g}\right )+6 \log (d+e x) \operatorname {PolyLog}\left (3,\frac {i (d+e x)}{-e h+d i}\right )+6 \operatorname {PolyLog}\left (4,\frac {g (d+e x)}{-e f+d g}\right )-6 \operatorname {PolyLog}\left (4,\frac {i (d+e x)}{-e h+d i}\right )\right )}{g h-f i} \]

input
Integrate[(a + b*Log[c*(d + e*x)^n])^3/((f + g*x)*(h + i*x)),x]
 
output
((a - b*n*Log[d + e*x] + b*Log[c*(d + e*x)^n])^3*Log[f + g*x] - (a - b*n*L 
og[d + e*x] + b*Log[c*(d + e*x)^n])^3*Log[h + i*x] + 3*b*n*(a - b*n*Log[d 
+ e*x] + b*Log[c*(d + e*x)^n])^2*(Log[d + e*x]*(Log[(e*(f + g*x))/(e*f - d 
*g)] - Log[(e*(h + i*x))/(e*h - d*i)]) + PolyLog[2, (g*(d + e*x))/(-(e*f) 
+ d*g)] - PolyLog[2, (i*(d + e*x))/(-(e*h) + d*i)]) + 6*b^2*n^2*(a - b*n*L 
og[d + e*x] + b*Log[c*(d + e*x)^n])*((Log[d + e*x]^2*Log[(e*(f + g*x))/(e* 
f - d*g)])/2 - (Log[d + e*x]^2*Log[(e*(h + i*x))/(e*h - d*i)])/2 + Log[d + 
 e*x]*PolyLog[2, (g*(d + e*x))/(-(e*f) + d*g)] - Log[d + e*x]*PolyLog[2, ( 
i*(d + e*x))/(-(e*h) + d*i)] - PolyLog[3, (g*(d + e*x))/(-(e*f) + d*g)] + 
PolyLog[3, (i*(d + e*x))/(-(e*h) + d*i)]) + b^3*n^3*(Log[d + e*x]^3*Log[(e 
*(f + g*x))/(e*f - d*g)] - Log[d + e*x]^3*Log[(e*(h + i*x))/(e*h - d*i)] + 
 3*Log[d + e*x]^2*PolyLog[2, (g*(d + e*x))/(-(e*f) + d*g)] - 3*Log[d + e*x 
]^2*PolyLog[2, (i*(d + e*x))/(-(e*h) + d*i)] - 6*Log[d + e*x]*PolyLog[3, ( 
g*(d + e*x))/(-(e*f) + d*g)] + 6*Log[d + e*x]*PolyLog[3, (i*(d + e*x))/(-( 
e*h) + d*i)] + 6*PolyLog[4, (g*(d + e*x))/(-(e*f) + d*g)] - 6*PolyLog[4, ( 
i*(d + e*x))/(-(e*h) + d*i)]))/(g*h - f*i)
 
3.3.32.3 Rubi [A] (verified)

Time = 0.78 (sec) , antiderivative size = 372, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.065, Rules used = {2865, 2009}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int \frac {\left (a+b \log \left (c (d+e x)^n\right )\right )^3}{(f+g x) (h+i x)} \, dx\)

\(\Big \downarrow \) 2865

\(\displaystyle \int \left (\frac {g \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{(f+g x) (g h-f i)}-\frac {i \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{(h+i x) (g h-f i)}\right )dx\)

\(\Big \downarrow \) 2009

\(\displaystyle -\frac {6 b^2 n^2 \operatorname {PolyLog}\left (3,-\frac {g (d+e x)}{e f-d g}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{g h-f i}+\frac {6 b^2 n^2 \operatorname {PolyLog}\left (3,-\frac {i (d+e x)}{e h-d i}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{g h-f i}+\frac {3 b n \operatorname {PolyLog}\left (2,-\frac {g (d+e x)}{e f-d g}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{g h-f i}-\frac {3 b n \operatorname {PolyLog}\left (2,-\frac {i (d+e x)}{e h-d i}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )^2}{g h-f i}+\frac {\log \left (\frac {e (f+g x)}{e f-d g}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{g h-f i}-\frac {\log \left (\frac {e (h+i x)}{e h-d i}\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )^3}{g h-f i}+\frac {6 b^3 n^3 \operatorname {PolyLog}\left (4,-\frac {g (d+e x)}{e f-d g}\right )}{g h-f i}-\frac {6 b^3 n^3 \operatorname {PolyLog}\left (4,-\frac {i (d+e x)}{e h-d i}\right )}{g h-f i}\)

input
Int[(a + b*Log[c*(d + e*x)^n])^3/((f + g*x)*(h + i*x)),x]
 
output
((a + b*Log[c*(d + e*x)^n])^3*Log[(e*(f + g*x))/(e*f - d*g)])/(g*h - f*i) 
- ((a + b*Log[c*(d + e*x)^n])^3*Log[(e*(h + i*x))/(e*h - d*i)])/(g*h - f*i 
) + (3*b*n*(a + b*Log[c*(d + e*x)^n])^2*PolyLog[2, -((g*(d + e*x))/(e*f - 
d*g))])/(g*h - f*i) - (3*b*n*(a + b*Log[c*(d + e*x)^n])^2*PolyLog[2, -((i* 
(d + e*x))/(e*h - d*i))])/(g*h - f*i) - (6*b^2*n^2*(a + b*Log[c*(d + e*x)^ 
n])*PolyLog[3, -((g*(d + e*x))/(e*f - d*g))])/(g*h - f*i) + (6*b^2*n^2*(a 
+ b*Log[c*(d + e*x)^n])*PolyLog[3, -((i*(d + e*x))/(e*h - d*i))])/(g*h - f 
*i) + (6*b^3*n^3*PolyLog[4, -((g*(d + e*x))/(e*f - d*g))])/(g*h - f*i) - ( 
6*b^3*n^3*PolyLog[4, -((i*(d + e*x))/(e*h - d*i))])/(g*h - f*i)
 

3.3.32.3.1 Defintions of rubi rules used

rule 2009
Int[u_, x_Symbol] :> Simp[IntSum[u, x], x] /; SumQ[u]
 

rule 2865
Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*(RFx_), x_Sy 
mbol] :> With[{u = ExpandIntegrand[(a + b*Log[c*(d + e*x)^n])^p, RFx, x]}, 
Int[u, x] /; SumQ[u]] /; FreeQ[{a, b, c, d, e, n}, x] && RationalFunctionQ[ 
RFx, x] && IntegerQ[p]
 
3.3.32.4 Maple [C] (warning: unable to verify)

Result contains higher order function than in optimal. Order 9 vs. order 4.

Time = 5.40 (sec) , antiderivative size = 2696, normalized size of antiderivative = 7.25

method result size
risch \(\text {Expression too large to display}\) \(2696\)

input
int((a+b*ln(c*(e*x+d)^n))^3/(g*x+f)/(i*x+h),x,method=_RETURNVERBOSE)
 
output
6*b^3*n^3/(f*i-g*h)*polylog(4,-i*(e*x+d)/(-d*i+e*h))-6*b^3*n^3/(f*i-g*h)*p 
olylog(4,-g*(e*x+d)/(-d*g+e*f))+b^3/(f*i-g*h)*ln(i*(e*x+d)-d*i+e*h)*ln((e* 
x+d)^n)^3-b^3/(f*i-g*h)*ln(g*(e*x+d)-d*g+e*f)*ln((e*x+d)^n)^3+1/8*(-I*b*Pi 
*csgn(I*c*(e*x+d)^n)*csgn(I*c)*csgn(I*(e*x+d)^n)+I*Pi*csgn(I*c)*csgn(I*c*( 
e*x+d)^n)^2*b+I*Pi*csgn(I*(e*x+d)^n)*csgn(I*c*(e*x+d)^n)^2*b-I*Pi*csgn(I*c 
*(e*x+d)^n)^3*b+2*b*ln(c)+2*a)^3*(1/(f*i-g*h)*ln(i*x+h)-1/(f*i-g*h)*ln(g*x 
+f))+3/4*(-I*b*Pi*csgn(I*c*(e*x+d)^n)*csgn(I*c)*csgn(I*(e*x+d)^n)+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)} \, dx=\int { \frac {{\left (b \log \left ({\left (e x + d\right )}^{n} c\right ) + a\right )}^{3}}{{\left (g x + f\right )} {\left (i x + h\right )}} \,d x } \]

input
integrate((a+b*log(c*(e*x+d)^n))^3/(g*x+f)/(i*x+h),x, algorithm="fricas")
 
output
integral((b^3*log((e*x + d)^n*c)^3 + 3*a*b^2*log((e*x + d)^n*c)^2 + 3*a^2* 
b*log((e*x + d)^n*c) + a^3)/(g*i*x^2 + f*h + (g*h + f*i)*x), x)
 
3.3.32.6 Sympy [F(-1)]

Timed out. \[ \int \frac {\left (a+b \log \left (c (d+e x)^n\right )\right )^3}{(f+g x) (h+i x)} \, dx=\text {Timed out} \]

input
integrate((a+b*ln(c*(e*x+d)**n))**3/(g*x+f)/(i*x+h),x)
 
output
Timed out
 
3.3.32.7 Maxima [F]

\[ \int \frac {\left (a+b \log \left (c (d+e x)^n\right )\right )^3}{(f+g x) (h+i x)} \, dx=\int { \frac {{\left (b \log \left ({\left (e x + d\right )}^{n} c\right ) + a\right )}^{3}}{{\left (g x + f\right )} {\left (i x + h\right )}} \,d x } \]

input
integrate((a+b*log(c*(e*x+d)^n))^3/(g*x+f)/(i*x+h),x, algorithm="maxima")
 
output
a^3*(log(g*x + f)/(g*h - f*i) - log(i*x + h)/(g*h - f*i)) + integrate((b^3 
*log((e*x + d)^n)^3 + b^3*log(c)^3 + 3*a*b^2*log(c)^2 + 3*a^2*b*log(c) + 3 
*(b^3*log(c) + a*b^2)*log((e*x + d)^n)^2 + 3*(b^3*log(c)^2 + 2*a*b^2*log(c 
) + a^2*b)*log((e*x + d)^n))/(g*i*x^2 + f*h + (g*h + f*i)*x), x)
 
3.3.32.8 Giac [F]

\[ \int \frac {\left (a+b \log \left (c (d+e x)^n\right )\right )^3}{(f+g x) (h+i x)} \, dx=\int { \frac {{\left (b \log \left ({\left (e x + d\right )}^{n} c\right ) + a\right )}^{3}}{{\left (g x + f\right )} {\left (i x + h\right )}} \,d x } \]

input
integrate((a+b*log(c*(e*x+d)^n))^3/(g*x+f)/(i*x+h),x, algorithm="giac")
 
output
integrate((b*log((e*x + d)^n*c) + a)^3/((g*x + f)*(i*x + h)), x)
 
3.3.32.9 Mupad [F(-1)]

Timed out. \[ \int \frac {\left (a+b \log \left (c (d+e x)^n\right )\right )^3}{(f+g x) (h+i x)} \, dx=\int \frac {{\left (a+b\,\ln \left (c\,{\left (d+e\,x\right )}^n\right )\right )}^3}{\left (f+g\,x\right )\,\left (h+i\,x\right )} \,d x \]

input
int((a + b*log(c*(d + e*x)^n))^3/((f + g*x)*(h + i*x)),x)
 
output
int((a + b*log(c*(d + e*x)^n))^3/((f + g*x)*(h + i*x)), x)